<?
 include_once(dirname(__FILE__)."/mode/tools/imageTool.php");
 
 $imageName=file_exists($_GET["imgName"]) ? $_GET["imgName"] : "test/imgtest.jpg";
 $im=new imageTool($imageName);
 $im->createBreviary($_GET['width'],$_GET['height']);
?>